<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $this->baseUrl;?>/admincss/mstyle.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js" /></script>

</head>
<body>
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="<?php echo $this->url($this->baseUrl,"manage","index");?>">
<input type="hidden" name="mid" value="<?php echo $this->content['mid'];?>" />
  <table border="1" class="tableA"  align="center">
    <tr>
      <td colspan="3" align="center">设置默认主页<?php if ($this->setflag){?><font color="red">配置成功</font><?php }?></td>
    </tr>
    <tr>
      <td width="120">中文会议</td>
      <td width="250">
      <select name="homeuuid" id="homeuuid">
      <optgroup label="顶部导航">
      <?php foreach($this->content['top'] as $v){
      $selected = "";
      if ($this->content['homeuuid'] == $v['uuid'])
      	$selected = "selected=\"selected\"";
      
      print <<<EOT
      <option value="{$v['uuid']}" {$selected}>{$v['name']}</option>
EOT;
}?></optgroup>
      <optgroup label="左菜单">
      <?php 
      if (is_array($this->content['left']))
      foreach($this->content['left'] as $v){
      $selected = "";
      if ($this->content['homeuuid'] == $v['uuid'])
      	$selected = "selected=\"selected\"";
      
      print <<<EOT
      <option value="{$v['uuid']}" {$selected}>{$v['name']}</option>
EOT;
}?></optgroup>
    </select></td>
      <td>选择默认主页</td>
    </tr>
    
    
    <tr>
      <td colspan="3" align="center"><input type="submit" name="button" id="button" value="提交" class="btn_submit"/></td>
    </tr>
  </table>
</form>
</body>
</html>